package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.DaoChainInfo;
import com.sc.nft.mapper.DaoChainInfoMapper;
import  com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * Dao上链信息(sc_dao_chain_info)数据DAO
 *
 * @author zxy
 * @since 2023-05-17 14:20:36
 * @description 活动推荐表
 */
@Slf4j
@Repository
public class DaoChainInfoDao extends ServiceImpl<DaoChainInfoMapper, DaoChainInfo> {

    public DaoChainInfo getByDaoId(Long daoId) {
        LambdaQueryWrapper<DaoChainInfo> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(DaoChainInfo::getDaoId,daoId);
        return getOne(wrapper);
    }
}